import React from 'react'
import style from './ListSearch.module.scss'
const searchList = ({list}) => {
  // console.log(list)
  return (
    <div className={style.SearchList}>
        {list.length === 0 && <div>没有找到对应的地点</div>}
      <ul>
      {list.map(item =>
        <li key={item.cityId}>{item.name}</li>
      )}
      </ul>

    </div>
  )
}

export default searchList